package cn.ingrun.ingrunutils.params;

/**
 * Author ingrun
 * Date 2020/12/31 11:26
 */
public class PageParams {

    private int page;
    private int pageSize;
    private String sort;

    public PageParams () {
    }

    public PageParams (int page, int pageSize, String sort) {
        this.page = page;
        this.pageSize = pageSize;
        if ( sort == null ){
            sort = "";
        }
        this.sort = sort;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }
}
